package com.bestcem.xm.user.util.convert;

import com.bestcem.xm.user.entity.mysql.OrganizationQuotainfo;
import com.bestcem.xm.user.entity.pojo.OrganizationQuotainfoDO;
import com.bestcem.xm.user.service.dto.user.OrganizationQuotainfoDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 公司限额统计
 *
 * @author jishuo.yan <jishuo.yan@idiaoyan.com>
 * @date 2022/3/24 17:00
 */

@Mapper(componentModel = "spring")
public interface OrganizationQuotainfoConvert {

    OrganizationQuotainfo doToEntity(OrganizationQuotainfoDO pojo);

    OrganizationQuotainfoDO entityToDo(OrganizationQuotainfo organizationQuotainfo);

    List<OrganizationQuotainfoDO> entitysToDos(List<OrganizationQuotainfo> organizationQuotainfos);

    OrganizationQuotainfoDO dtoToDo(OrganizationQuotainfoDTO dto);

    OrganizationQuotainfoDTO doToDto(OrganizationQuotainfoDO pojo);

    List<OrganizationQuotainfoDTO> dosToDtos(List<OrganizationQuotainfoDO> pojos);
}
